<?php
defined('_AppBackMiage') or die('Restricted access');
if(isAdministrateur ()){
    if(isset($_GET['id']) && !empty($_GET['id']))
    {
        $model = new ModelMail($_GET['id']);

        $user = $global_member;
        $data = array(
            $user->getNomUtilisateur(),
            $user->getPrenomUtilisateur(),
            $user->getEmailUtilisateur(),
            $user->getPass(),
            URL,
            "fuck!"
            );
        $search = array("%Nom%","%Prenom%","%Email%","%MotDePasse%","%URL%",'%TG%');
        $str = Tools::parseModelMail($search,$data,$model->getTextModelMail());
        echo stripcslashes($str);
    }
}
else
{
    redirectTo(URLBACK);
}
?>